<@t.html>
<@t.container title="消息列表" icon="comment" >
  	       <!--operator-->
  	       <@t.btn_a name="发送消息" icon="send" href="admin/message/toAdd"/>
  	       <@t.btn_b name="删除消息" icon="trash" onclick="batchDeleteFun('admin/message/delete');" />
  		   <@t.dt>
  		   		 <@t.dtheader>
						 <@t.column title="ID" />
						 <@t.column title="内容" />
						 <@t.column title="收信人ID" />
						 <@t.column title="收信删除" />
						 <@t.column title="发送者ID" />
						 <@t.column title="发送是否删除" />
						 <@t.column title="发送日期" />
						 <@t.column title="阅读日期" />
						 <@t.column title="是否阅读" />
						 <@t.column title="消息类型" />
				</@t.dtheader>
  			<@t.dtbody>
  				 <#list page.list as a>
                     <tr onclick="checkDataGridRow('${a.id}');">
                      	<td><input name='SelectedID' id="select_${a.id}" value="${a.id}" type="checkbox"></td>
                        <td>${a.id}</td>
						<td>${a.title}</td>
						<td>${a.content}</td>
						<td>${a.receive_id}</td>
						<td><@t.code defVal="${a.receive_del}" datas={"1":"已删除", "0":"未删除"} /></td>
						<td>${a.send_id}</td>
						<td><@t.code defVal="${a.send_del}" datas={"1":"已删除", "0":"未删除"} /></td>
						<td>${a.send_date}</td>
						<td>${a.read_date}</td>
						<td><@t.code defVal="${a.is_read}" datas={"1":"已读", "0":"未读"} /></td>
						<td><@t.code defVal="${a.type}" datas={"0":"系统发送", "1":"管理员发送"} /></td>
                        <td>
                        	<@t.btn_b name="删除" size="btn-xs" icon="trash" onclick="batchDeleteFun('admin/message/delete','${a.id}');" />
							<@t.btn_a name="查看" size="btn-xs" icon="eye" href="admin/message/toAdd?id=${a.id}"/>
						</td>
                     </tr>
				 </#list>
  			</@t.dtbody>
  		</@t.dt>
  		<!--pager-->
  		<@t.back_pager objCount=page.totalRow pageSize=page.pageSize pageNum=page.pageNumber pageCount=page.totalPage></@t.back_pager>
  </@t.container>
</@t.html>